<extend name="Public/base" />
<block name="body">
	<div class="row">
		<div class="col-md-12">
			<!-- BEGIN EXAMPLE TABLE PORTLET-->
			<div class="portlet-body" id="cont">
				<div class="table-toolbar">
					<div class="btn-group" style="float:left">
						<a href="{:U('add')}" class="btn green">
							新 增 
						</a>
						<a class="btn btn-danger" style="margin-left:5px;">
							删 除 
						</a>
					</div>
					<div style="float:right">
						<label>
							<form class="form-inline pull-right" action="" method="post">
								<div class="input-group input-medium">
									<input class="form-control" type="text" placeholder="请输入关键字" name="sinfo">
									<span class="input-group-btn">
										<button class="btn green" type="submit">
											<i class="icon-search"></i>
										</button>
									</span>
								</div>
							</form>
						</label>
					</div>
				</div>

				<div class="clearfix"></div>

				<table class="table table-striped table-bordered table-hover" id="checkboxtable">
					<thead>
						<tr>
							<th class="table-checkbox" width="3%"><input type="checkbox" name="select-all" class="group-checkable" data-set="#checkboxtable .checkboxes"/></th>
							<th>ID</th>
							<th>标题</th>
							<th>分类</th>
							<th>推荐位</th>
							<th>可见</th>
							<th>浏览</th>
							<th>发布时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<if condition="$list">
							<volist name="list" id="vo">
								<tr class="odd gradeX">
									<td><input type="checkbox" class="checkboxes" value="1"/></td>
									<td>{$vo.id}</td>
									<td>{$vo.title}</td>
									<td>{$vo.categoryTitle}</td>
									<td>{$vo.position}</td>
									<td>
										<if condition="$vo['display'] EQ 1">
											否
										<else/>
										    是
										</if>
									</td>
									<td>{$vo.view}</td>
									<td>{$vo.create_time|date='Y-m-d H:i',###}</td>
									<td>
										<a href="{:U('edit', array('id'=>$vo['id']))}">编辑</a>&nbsp;&nbsp;
									    <a href="{:U('del', array('id'=>$vo['id']))}" class="ajax-get">删除</a>
									</td>
								</tr>
							</volist>
					    <else/>
							<tr><td colspan="11" align="center">没有找到相关数据！</td></tr>
						</if>
					</tbody>
				</table>
			</div>
			<div class="pull-right">
				{$_page}
			</div>
		</div>
	</div>
</block>